package widget;

import android.content.Context;

import student.andlei.com.student.R;


/**
 * author : Chenhuiming
 * date : 2018/9/14
 * email : 907399255@qq.com
 * description : 自定义全局通用的tab
 */
public class CommonIndicatorView extends ScaleTransitionPagerTitleView {
    public CommonIndicatorView(Context context, String label) {
        super(context);
        setText(label);
        setNormalColor(getResources().getColor(R.color.font_black));
        setSelectedColor(getResources().getColor(R.color.homepage_titlefont));
        setMinScale(0.95f);
    }

    @Override
    public void onSelected(int index, int totalCount) {
        super.onSelected(index, totalCount);
        setTextSize(20);
    }

    @Override
    public void onDeselected(int index, int totalCount) {
        super.onDeselected(index, totalCount);
        setTextSize(19);
    }
}
